package com.zerox.mapper;


import com.zerox.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author
 * @version V1.11
 * @ClassName:
 * @Description:
 * @Date
 */

public interface SysUserMapper {
    SysUser selectByUser(@Param("account") String account);

    List<SysUser> list(@Param("startIndex") Integer startIndex,@Param("pageSize") Integer pageSize,@Param("realName") String realName,@Param("roleId") Integer roleId);

    int count(@Param("realName")String realName, @Param("roleId") Integer roleId);

    int add(SysUser sysUser);

    SysUser selectId(Integer id);

    int del(Integer id);

    int edit(SysUser sysUser);

    int selectByAccount(String account);
}
